<foreach name="amt_changes" item="amt">
    <tr>
        <td>{$amt['change_time']}</td>
        <td>{:GetAgentNameById($amt['agent_id'])}</td>
        <td>{$amt['amt_remark']}</td>
        <td>
            <if condition="$amt['amt_type'] eq 2">
                <span class="red_common">- {$amt['amt']}</span>
                <else/><span class="yes">+ {$amt['amt']}</span>
            </if>
        </td>
        <td><a class="amt">{$amt['surplus']}</a></td>
    </tr>
</foreach>
<tr><td colspan="5">{$page}</td></tr>

<script type="text/javascript">
    $(document).ready(function(){
        $(".pagination a").click(function(){
            cur_page = $(this).data('p');
            ajax_get_table(cur_page);
        });
    });
</script>